﻿namespace WeWork.Model
{
    /// <summary>
    /// 图片
    /// </summary>
    public class ChatImage : MsgChatRoomBase
    {
        /*
        {
            "msgid":"CAQQvPnc4QUY0On2rYSAgAMgooLa0Q8=",
            "action":"send",
            "from":"XuJinSheng",
            "tolist":["icefog"],
            "roomid":"",
            "msgtime":0,
            "msgtype":"image",
            "image":{
                "md5sum":"50de8e5ae8ffe4f1df7a93841f71993a",
                "filesize":70961,
                "sdkfileid":"CtYBMzA2OTAyMDEwMjA0NjIzMDYwMDIwMTAwMDIwNGI3ZmU0MDZlMDIwMzBmNTliMTAyMDQ1YzliNTQ3NzAyMDQ1YzM3M2NiYzA0MjQ2NjM0MzgzNTM0NjEzNTY1MmQzNDYxMzQzODJkMzQzMTYxNjEyZDM5NjEzOTM2MmQ2MTM2NjQ2NDY0NjUzMDY2NjE2NjM1MzcwMjAxMDAwMjAzMDExNTQwMDQxMDUwZGU4ZTVhZThmZmU0ZjFkZjdhOTM4NDFmNzE5OTNhMDIwMTAyMDIwMTAwMDQwMBI4TkRkZk1UWTRPRGcxTVRBek1ETXlORFF6TWw4eE9UUTVOamN6TkRZMlh6RTFORGN4TWpNNU1ERT0aIGEwNGQwYWUyM2JlYzQ3NzQ5MjZhNWZjMjk0ZTEyNTkz"
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public ImageInfo image { set; get; }
    }

    public class ImageInfo
    {
        /// <summary>
        /// 图片资源的md5值，供进行校验。String类型
        /// </summary>
        public string md5sum { set; get; }
        /// <summary>
        /// 图片资源的文件大小。Uint32类型
        /// </summary>
        public int filesize { set; get; }
        /// <summary>
        /// 媒体资源的id信息。String类型
        /// </summary>
        public string sdkfileid { set; get; }
    }
}
